/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package validator;

/**
 *
 * @author Valentina
 */
public class ValidatorException extends Exception{
    private String fieldName;
    private String errorMessage;

    public ValidatorException() {
    }

    public ValidatorException(String fieldName) {
        this.fieldName = fieldName;
    }

    public ValidatorException(String message, String fieldName) {
        super(message);
        this.errorMessage = message;
        this.fieldName = fieldName;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

}
